package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 电表电能历史记录表
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("rb_ep_history")
@ApiModel(value = "EpHistory对象", description = "电表电能历史记录表")
public class EpHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("电能记录id")
      private Integer id;

    @ApiModelProperty("总有功电能")
    private String allEp;

    @ApiModelProperty("总尖有功电能")
    private String jianEp;

    @ApiModelProperty("总峰有功电能")
    private String fengEp;

    @ApiModelProperty("总平有功电能")
    private String pingEp;

    @ApiModelProperty("总谷有功电能")
    private String guEp;

    @ApiModelProperty("所属从机id")
    private Integer slaveId;

    @ApiModelProperty("所属从机名称")
    private String slaveName;

    @ApiModelProperty("所属设备id")
    private Integer equipmentId;

    @ApiModelProperty("所属设备名称")
    private String equipmentName;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
